<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>模板语法</title>
  </head>
  <body>
    <script src="https://unpkg.com/vue@next"></script>

    <div id="root"></div>

    <script>
     
      const app = Vue.createApp({
        data() {
          return {
            message: "<strong>hello world</strong>",
            //show:false
            //disable: false,
          };
        },

        //template: `<div v-bind:title="message" v-if="show">{{message}}</div>`,
        //template: `<input type="text" v-bind:disabled="disable">`,
        //template: `<div v-html="message"></div>`,
        template: `<div v-once>{{message}}</div>`,
      });

      const vm = app.mount("#root");
    </script>
  </body>
</html>
